package com.mybatis.entity;

import java.util.List;

public class PageInfo {
    private int endRow;
    private List list;
    private int pageNum;
    private int pageSize;
    private int pages;
    private int startRow;
    private long total;

    public PageInfo(List list2) {
        if (list2 instanceof Page) {
            Page page = (Page) list2;
            this.pageNum = page.getPageNum();
            this.pageSize = page.getPageSize();
            this.startRow = page.getStartRow();
            this.endRow = page.getEndRow();
            this.total = page.getTotal();
            this.pages = page.getPages();
            this.list = page;
        }
    }

    public int getPageNum() {
        return this.pageNum;
    }

    public void setPageNum(int pageNum2) {
        this.pageNum = pageNum2;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize2) {
        this.pageSize = pageSize2;
    }

    public int getStartRow() {
        return this.startRow;
    }

    public void setStartRow(int startRow2) {
        this.startRow = startRow2;
    }

    public int getEndRow() {
        return this.endRow;
    }

    public void setEndRow(int endRow2) {
        this.endRow = endRow2;
    }

    public long getTotal() {
        return this.total;
    }

    public void setTotal(long total2) {
        this.total = total2;
    }

    public int getPages() {
        return this.pages;
    }

    public void setPages(int pages2) {
        this.pages = pages2;
    }

    public List getList() {
        return this.list;
    }

    public void setList(List list2) {
        this.list = list2;
    }
}
